package com.ruoyi.workbench.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 年度考核指标对象 work_target
 * 
 * @author Guojl
 * @date 2024-07-04
 */
public class WorkTarget extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long targetId;

    /** 指标名称 */
    @Excel(name = "指标名称")
    private String targetName;

    /** 指标考核标准 */
    @Excel(name = "指标考核标准")
    private String targetContent;

    /** 指标考核标准-数字 */
    @Excel(name = "指标考核标准-数字")
    private String targetNum;

    /** 指标考核标准-数字单位（10000：万；100000000亿） */
    @Excel(name = "指标考核标准-数字单位（10000：万；100000000亿）")
    private String targetNumUnit;

    /** 指标类型（1：盈利性指标 2：重点工作指标 3：约束性指标） */
    @Excel(name = "指标类型", readConverterExp = "1=：盈利性指标,2=：重点工作指标,3=：约束性指标")
    private String targetType;

    /** 指标所属年度 */
    @Excel(name = "指标所属年度")
    private String targetYear;

    /** 指标来源（1：年度考核 2：领导指派） */
    @Excel(name = "指标来源", readConverterExp = "1=：年度考核,2=：领导指派")
    private String targetFrom;

    private List<WorkTargetTask> targetTaskList;

    public void setTargetId(Long targetId) 
    {
        this.targetId = targetId;
    }

    public Long getTargetId() 
    {
        return targetId;
    }
    public void setTargetName(String targetName) 
    {
        this.targetName = targetName;
    }

    public String getTargetName() 
    {
        return targetName;
    }
    public void setTargetContent(String targetContent) 
    {
        this.targetContent = targetContent;
    }

    public String getTargetContent() 
    {
        return targetContent;
    }

    public String getTargetNum() {
        return targetNum;
    }

    public void setTargetNum(String targetNum) {
        this.targetNum = targetNum;
    }

    public String getTargetNumUnit() {
        return targetNumUnit;
    }

    public void setTargetNumUnit(String targetNumUnit) {
        this.targetNumUnit = targetNumUnit;
    }

    public void setTargetType(String targetType)
    {
        this.targetType = targetType;
    }

    public String getTargetType() 
    {
        return targetType;
    }
    public void setTargetYear(String targetYear) 
    {
        this.targetYear = targetYear;
    }

    public String getTargetYear() 
    {
        return targetYear;
    }
    public void setTargetFrom(String targetFrom) 
    {
        this.targetFrom = targetFrom;
    }

    public String getTargetFrom() 
    {
        return targetFrom;
    }

    public List<WorkTargetTask> getTargetTaskList() {
        return targetTaskList;
    }

    public void setTargetTaskList(List<WorkTargetTask> targetTaskList) {
        this.targetTaskList = targetTaskList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("targetId", getTargetId())
            .append("targetName", getTargetName())
            .append("targetContent", getTargetContent())
            .append("targetType", getTargetType())
            .append("targetYear", getTargetYear())
            .append("targetFrom", getTargetFrom())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
